Hello All, When I create a wizard base DXL attribute and save it in the module. Then archive the project and restore it, The attribute stops working as module ID where the information is retrieved from is changed during restore. for example "string limitModules[1] = {"4241c93b1c1d39d7-0000cb80"} " is the ID when I generated the attribure and does not remail valid after restore. In the past I have created a new database all together and restored from backup to make it work.
I was wondering what is the best way to avoid creating databases for this purpose only. and have archive / restore work in this scenario.
///////////////////////////////////////////// Code ///////////////////////////
{ // Begin Script // pragma runLim, 0 string limitModules[1] = {"4241c93b1c1d39d7-0000cb80"}
void showIn(Object o, int depth) { //Chase in-links from objects showIn(obj,1) // End Script // } jester76 - Fri Jul 26 13:23:42 EDT 2013 |
Re: Wizard based DXL attribute archive/restore issue I usually generate my traceability columns with the Analysis Wizard, but remove from the generated code to Module ID and check the modules needed either by module name or by link module name. Which will work in any database ... as long as nobody changes the module names. |
Re: Wizard based DXL attribute archive/restore issue Pekka_Makinen - Fri Jul 26 15:30:13 EDT 2013 I usually generate my traceability columns with the Analysis Wizard, but remove from the generated code to Module ID and check the modules needed either by module name or by link module name. Which will work in any database ... as long as nobody changes the module names. Thanks, Are you able to share an example of one wizard based script modified to use module paths?
Thanks Jester |
Re: Wizard based DXL attribute archive/restore issue jester76 - Fri Jul 26 15:48:39 EDT 2013 Thanks, Are you able to share an example of one wizard based script modified to use module paths?
Thanks Jester // Worked out example. Thanks
// DXL generated by DOORS traceability wizard on 26 July 2013.
string limitModules[1] = {"4ea082be63e77f68-00000080"}
// Item linkModItem = itemFromID("4ea082be63e77f68-000000e0") // this to
// if (!equal(getItem otherMod, (itemFromID limitModules[depth-1]))) continue // this to |